//
//  WALocationValueTransformer.m
//  WeatherApp
//
//  Created by Yuliya Grasevych on 24.10.14.
//  Copyright (c) 2014 Yuliya Grasevych. All rights reserved.
//

#import "WALocationValueTransformer.h"
#import "WALocation.h"
#import "WAWeatherProvider.h"

@implementation WALocationValueTransformer

+(Class)transformedValueClass
{
    return [WALocation class];
}

-(id)transformedValue:(id)value
{
    WALocation *location = [[WAWeatherProvider sharedInstance] locationForKey:value];
    return location;
}
@end
